package org.hd.taobao.service.impl;

import org.hd.taobao.dao.IUserDao;
import org.hd.taobao.dao.impl.UserDaoImpl;
import org.hd.taobao.entity.User;
import org.hd.taobao.service.IUserService;
import org.hd.taobao.utils.DruidConnectionUtils;

/**
 * @Author: Ben
 * @Date: 2021/4/7 22:28
 */
public class UserServiceImpl implements IUserService {
    IUserDao iUserDao=new UserDaoImpl();
    DruidConnectionUtils druidConnectionUtils=new DruidConnectionUtils();
    @Override
    public boolean insertUser(User user) {
        return iUserDao.insertUserDao(druidConnectionUtils.getConnection(),user);
    }
}
